package m06;

import javax.swing.JFrame;

import m07.GamePanel;
import m07.Ship;


/**
 * This is the game screen class.
 * This controls the game screen.
 * 
 * @author Joshua Clark, Jessica Roberts, and Samantha Rich
 * @version 2.1 22 October 2012
 */
@SuppressWarnings("serial")
public class GameScreen extends JFrame{

	Ship ship= new Ship("flea", 10);
	static GamePanel GP = new GamePanel();
	
	/** Creates the frame. */
	public GameScreen() {
		this(GP);
	} 
	
	public GameScreen(GamePanel gp){
		GP = gp;
		setResizable(false);
		setTitle("Space Traders");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(600, 620);
		
		setContentPane(GP);
		GP.setLayout(null);
		GP.setVisible(true);
	}
} // end class 

